package dbspo

import (
	"time"
)

// 企业信息
type Company struct {
	ID        uint64    `json:"id"`
	Name      string    `json:"name" gorm:"index,idx_company_name,unique;size:50"`
	Addr      string    `json:"addr" gorm:"size:50"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

func (Company) TableName() string {
	return "ht_company"
}
